﻿<Window x:Class="DataBinding.UpdateSourceTrigger"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="UpdateSource Trigger" Height="282" Width="493">
    <Grid>
        <TextBlock Height="21" HorizontalAlignment="Left" Margin="4,21,0,0" Name="TextBlock1" VerticalAlignment="Top" Width="83" Text="First Name" />
        <TextBox Text="{Binding Path=FirstName}" Height="23" Margin="89,18,0,0" Name="TextBox1" VerticalAlignment="Top" HorizontalAlignment="Left" Width="177" />
        <TextBlock Height="21" HorizontalAlignment="Left" Margin="4,51,0,0" Name="TextBlock2" Text="Last Name" VerticalAlignment="Top" Width="83" />
        <TextBox Height="23" Margin="89,48,0,0" Name="TextBox2" Text="{Binding Path=LastName, UpdateSourceTrigger=PropertyChanged}" VerticalAlignment="Top" HorizontalAlignment="Left" Width="177" />
        <TextBlock Height="21" HorizontalAlignment="Left" Margin="282,21,0,0" Name="TextBlock3" Text="Default - LostFocus" VerticalAlignment="Top" Width="167" />
        <TextBlock Height="21" HorizontalAlignment="Left" Margin="282,48,0,0" Name="TextBlock4" Text="PropertyChanged" VerticalAlignment="Top" Width="167" />
        <GroupBox Header="Read-Only Values" Margin="77,114,90,38" Name="GroupBox1">
            <Grid>
                <TextBlock HorizontalAlignment="Left" Margin="6,13,0,0" Name="TextBlock5" Text="First Name" Width="83" Height="21" VerticalAlignment="Top" />
                <TextBlock Height="21" HorizontalAlignment="Left" Margin="6,40.04,0,0" Name="TextBlock6" Text="Last Name" VerticalAlignment="Top" Width="83" />
                <TextBlock Height="21" Margin="95,13,0,0" Text="{Binding Path=FirstName}" VerticalAlignment="Top" HorizontalAlignment="Left" Width="178" />
                <TextBlock Margin="95,40,0,0" Text="{Binding Path=LastName}"  Height="21" VerticalAlignment="Top" HorizontalAlignment="Left" Width="178" />
            </Grid>
        </GroupBox>
    </Grid>
</Window>
